﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Rate.ascx.cs" Inherits="UserControls_WebUserControl" %>
<style type="text/css">
    .auto-style1 {
        width: 100%;
    }
    .auto-style3 {
        height: 30px;
        width: 80px;
    }
    .auto-style4 {
        height: 30px;
    }
    .auto-style5 {
        width: 399px;
    }
</style>
<table class="auto-style1" style="font-family: tahoma; margin: 10px; border: thin solid #99CCFF; width: auto;">
    <tr>
        <td class="auto-style5">
            <h2 id="customerReviewsHeader" class="orange" style="color: rgb(228, 121, 17); font-size: large; margin: 0px; padding: 0px; border: 0px; font-weight: bold; font-style: normal; font-family: Arial, Verdana, 'Helvetica Neue', Helvetica, sans-serif; line-height: 23px; font-variant: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);">Customer Reviews</h2>
            <asp:Button ID="btnWRate" runat="server" PostBackUrl="~/AddRating.aspx" Text="Write a customer review" />
        </td>
    </tr>
    <tr>
        <td class="auto-style5">
            <strong style="color: rgb(51, 51, 51); font-family: Arial, Verdana, 'Helvetica Neue', Helvetica, sans-serif; font-size: small; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; ">List of Customer reviews</strong></td>
    </tr>
    <tr>
        <td class="auto-style5">
<asp:DataList ID="list" runat="server">
    <ItemTemplate>
        <table cellPadding="5" align="left" style="text-indent: 10px; margin-left: 10px; margin-top: 10px; border-right-color: #99CCFF; border-bottom-color: #99CCFF; border-left-color: #99CCFF;">
      <tr>
        <td align="left" class="auto-style3">
            <img width="80" height="20" src='Images/<%# Eval("Rating") %>' border="0"/>
        </td>
        <td align="left" class="auto-style4" style="font-size: x-small; font-family: tahoma; color: #999999">
           <%# Eval("RatDate","{0:D}") %>
        </td>
          <td align="left" width="81" class="auto-style4" style="font-family: Arial, Helvetica, sans-serif; color: #0072AC; font-size: x-small">
              By&nbsp;<%# Eval("CustomerName")%></td>
      </tr> 
      <tr>
        <td colspan="3">
             <span class="ProductDescription"><%# Eval("Comment") %></span>
             <br/>
             <br/>
          </td>
          </table>
        
    </ItemTemplate>
</asp:DataList>

        </td>
    </tr>
    <tr>
        <td style="margin: 10px; background-color: #EEEEEE; text-align: center; font-size: medium; font-family: tahoma;" class="auto-style5">
<asp:Label ID="pagingLabel" runat="server" CssClass="PagingText" Visible="false" />
<asp:HyperLink ID="previousLink" runat="server" CssClass="PagingText" Visible="false">Previous</asp:HyperLink>
<asp:HyperLink ID="nextLink" runat="server" CssClass="PagingText" Visible="false">Next</asp:HyperLink>
        </td>
    </tr>
</table>
&nbsp;&nbsp;
&nbsp;&nbsp;
<br/>


